'''
Print the Multiplication Table with While... structures
'''
print("{:=^70}".format("  Table 1   "))
i = 1
while i<=9:
    j=1
    while j<=i:
        print('{}*{}={}'.format(j, i, i * j), end='\t')
        j += 1
    print()
    i += 1

print('='*70)
i = 9
while i > 0:
    j=1
    while j <= i:
        print('{}*{}={}'.format(j, i, i * j), end='\t')
        j += 1
    print()
    i -= 1

print("\n\n{:=^85}".format("  Table 3   "))
i = 1
while i < 10:
    j = i
    strline = ''
    while j > 0:
        strline += '{}*{}={:<5}'.format(j, i, i * j)
        j -= 1
    print('{:>85}'.format(strline))
    i += 1

print("="*85)
i = 9
while i > 0:
    strline = ''
    j = i
    while j > 0:
        strline += '{}*{}={:<5}'.format(j, i, i * j)
        j -= 1
    print("{:>85}".format(strline))
    i -= 1

'''
End
'''